package com.haier.cre.commonframe.config;

import android.support.annotation.LayoutRes;

/**
 * 项目名：CommonLibrary
 * 包 名：com.haier.cre.commonframe.config
 * 创建人：18002063
 * 日 期：2018/10/16
 * 简 述： 简单实用的页面状态统一管理 ，加载中、无网络、无数据、出错等状态的随意切换
 */
public class LoadingViewConfig {

    private int emptyViewResId = LibConfig.EMPTY_VIEW_RESID;
    private int errorViewResId = LibConfig.ERROR_VIEW_RESID;
    private int loadingViewResId = LibConfig.LOADING_VIEW_RESID;
    private int noNetworkViewResId = LibConfig.NO_NETWORK_VIEW_RESID;

    public int getEmptyViewResId() {
        return emptyViewResId;
    }

    public LoadingViewConfig setEmptyViewResId(@LayoutRes int emptyViewResId) {
        this.emptyViewResId = emptyViewResId;
        return this;
    }

    public int getErrorViewResId() {
        return errorViewResId;
    }

    public LoadingViewConfig setErrorViewResId(@LayoutRes int errorViewResId) {
        this.errorViewResId = errorViewResId;
        return this;
    }

    public int getLoadingViewResId() {
        return loadingViewResId;
    }

    public LoadingViewConfig setLoadingViewResId(@LayoutRes int loadingViewResId) {
        this.loadingViewResId = loadingViewResId;
        return this;
    }

    public int getNoNetworkViewResId() {
        return noNetworkViewResId;
    }

    public LoadingViewConfig setNoNetworkViewResId(@LayoutRes int noNetworkViewResId) {
        this.noNetworkViewResId = noNetworkViewResId;
        return this;
    }
}
